package com.langxin.erp.util.constant;

import java.util.Properties;

import com.langxin.erp.util.web.PropertiesUtils;

/**
 * 常量定义
 * @author guqj
 *
 */
public interface SiteConstant {

	// 属性文件
	Properties prop = PropertiesUtils.getProperty("config/common.properties");
	// 成功
	String SUC = "SUC";
	// 失败
	String FAIL = "FAIL";
	// 文件保存路径
	String UPLOAD_FILE_PATH = prop.getProperty("image.path");
	// 文件URL
	String UPLOAD_FILE_URL = prop.getProperty("image.url");
	// 新增
	String ACTION_ADD = "ADD";
	// 更新
    String ACTION_UPDATE = "UPDATE";
    // cookie作用域
 	String COOKIE_DOMAIN = "kgyfycp.com";
 	// 用户登录session key
 	String SESSION_USER_KEY ="ERP_USER_LOGIN";
 	
 	
 	/**
	 * cookie key
	 * @author guqj
	 */
	enum CookieKey {
		// 文章阅读
		USER_COOKIE("40deb278-ef8c-4966-822c");
		
		private String value;

		private CookieKey(String value) {
			this.value = value;
		}
		
		public String getValue() {
			return value;
		}

		@Override
		public String toString() {
			return value;
		}
	}
}
